home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / Makefile.original < prev    next >
Encoding:
Makefile  |  1994-08-04  |  4.7 KB  |  180 lines

  1. #
  2. # Top level make of the WAIS system
  3. #   brewster 2/91
  4. #   jonathan 6/91
  5.  
  6. # $Log: Makefile.original,v $
  7. # Revision 1.1  1994/08/05  06:50:49  pfeifer
  8. # Release beta 04
  9. #
  10. # Revision 1.1  1994/03/08  13:40:02  pfeifer
  11. # Initial revision
  12. #
  13. # Revision 1.8  92/05/07  15:54:08  jonathan
  14. # Updated for release.
  15. # Revision 1.7  92/03/26  18:29:59  jonathan
  16. # Fixed some broken make lines.
  17. # Revision 1.6  92/03/07  19:45:01  jonathan
  18. # Added recommendation for IBM.
  19. # Revision 1.5  92/02/27  10:07:24  jonathan
  20. # got rid of automatic setting of TOP.  Used Simon's approach instead.
  21.  
  22. # Revision 1.4  92/02/13  12:27:53  jonathan
  23. # Removed references to seeker.
  24. # Revision 1.3  92/02/13  12:05:17  jonathan
  25. # Removed release targets.
  26. # Revision 1.2  92/02/13  11:57:56  jonathan
  27. # Added $Log for RCS.
  28. #
  29. # common customizations:
  30. # see the CFLAGS variable for pointers.
  31. #
  32. # to do:
  33. # create the scripts, install the pointer to this version if it is the
  34. # newest.
  35.  
  36. RELEASE = freeWAIS-0.2sf
  37.  
  38. RM = /bin/rm -f
  39. AR = ar
  40.  
  41. # on SGIs set this to true
  42. # RANLIB = true
  43. RANLIB = ranlib
  44.  
  45. # on IBM RS6000 this should be c89.
  46. #CC = cc
  47. CC = gcc
  48.  
  49. # set this for your site.  This syntax only works in SunOS
  50. # for other UNIX-like OS's set this to this directory.
  51. #TOP:sh = pwd
  52. # or fill in the blank for other OS's
  53. #TOP = /usr/local/ls6/src+data/src/freeWAIS-0.2-sf04
  54. comment-me:
  55.     @echo You must set "\$$(TOP)" to point to the freeWAIS src directory
  56.  
  57. SUPDIR = $(TOP)/ir
  58.  
  59. # compiler specific stuff
  60. #
  61. # for old BSD add -DBSD
  62. # for newer BSD that needs to use <sys/dir.h>, add -DBSD43
  63. # for System V add -DSYSV 
  64. # for XENIX add -M3e -Zi
  65. # USG for Unix Dirent in lib
  66. # for SGIs running IRIX 4.0.1, add -cckr
  67. #
  68. # For a little better security in the server, add -DSECURE_SERVER
  69. # this sets the server user id to -u argument after startup.
  70. # for relevance feedaback in the search engine, add -DRELEVANCE_FEEDBACK
  71. #
  72. #   dgg additions
  73. # LITERAL == waisserver, search for "literal strings"
  74. # BOOLEANS == waisserver, search with boolean AND, NOT operators
  75. # PARTIALWORD == waisserver, search for partial words, hum* matches human, hummingbird, ...
  76. # BIO == waisindex, waisserver changes including symbol indexing & search & bio data formats
  77. #
  78. # -DUSE_SYSLOG if you want logging to be done with syslog rather than
  79. #   fprintf
  80. # -DNEED_VSYSLOG if your C library does not have a vsyslog() function
  81. #   in it (and you defined USE_SYSLOG)
  82. #
  83. # -DDUMPCORE will force the waisserver to dump the core when aborting
  84. #   otherwise the core will not be dumped
  85. #
  86. # -DEND_MERGE if you want to merge the index files at the end of an
  87. #  index process otherwise they are merged as we go along
  88. #
  89. # -DSTEM_WORDS to stem words during indexing and queries
  90. #
  91. # Note - the default Porter Stemmer removes trailing e's from words -
  92. # variable becomes variabl  - this can impact the use of literals in
  93. #searches!!!!!!!!!!
  94. #
  95. # -DLIST_STEMS to show stemmed words in server log and indexer output
  96. #
  97. CFLAGS = -O -I$(SUPDIR) -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG -DBOOLEANS -DPARTIALWORD -DLITERAL -DSOUND -DBIBDB -DNESTED_BOOLEANS  -DFIELDS -DISO
  98. #
  99. # Use this version of CFLAGS for SGIs
  100. #CFLAGS = -O -cckr -lmalloc -I$(SUPDIR) -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG -DBOOLEANS -DPARTIALWORD -DLITERAL 
  101.  
  102. MFLAGS = -k
  103.  
  104. MAKE = make $(MFLAGS) 
  105.  
  106. #default: config.h lib ir ui bin doc x tags
  107. default: config.h lib ir ui bin x 
  108.     @echo "Welcome to WAIS"
  109.  
  110. config.h: config
  111.     ./config >config.h
  112.  
  113. config: config.c
  114.     $(CC) -o config config.c
  115.  
  116. lib::
  117.     cd lib; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP)
  118.  
  119. ir::
  120.     cd ir; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP) 
  121.  
  122. waisindex::
  123.     cd ir; $(MAKE) waisindex CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP)
  124.  
  125. waisserver::
  126.     cd ir; $(MAKE) waisserver CC=$(CC) CFLAGS="$(CFLAGS)" RANLIB=$(RANLIB) TOP=$(TOP)
  127.  
  128. ui::
  129.     cd ui; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" TOP=$(TOP)
  130.  
  131. # NeXT and ULTRIX don't have an env command, so this doesn't work.
  132. # try going to the x directory and just doing a make -k
  133. # you may have to edit the CFLAGS in the Makefile yourself.
  134.  
  135. x::
  136.     cd x; (env TOP=$(TOP) CC=$(CC) CFLAGS="$(CFLAGS)" MAKE="$(MAKE)" ./makex.sh)
  137.  
  138. bin::
  139.     cd bin; $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" TOP=$(TOP)
  140.  
  141. test::
  142.     @echo $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" TOP=$(TOP)
  143.  
  144. # to make the emacs tags table for meta-.:
  145. tags:     
  146.     etags -f TAGS ir/*.[ch]
  147.     etags -af TAGS ui/*.[ch]
  148.     etags -af TAGS x/*.[ch]
  149.  
  150. # Remove objects and library.
  151. clean:
  152.     $(RM) *%
  153.     $(RM) *~
  154.     $(RM) \#*\#
  155.     $(RM) core
  156.     $(RM) TAGS
  157.     $(RM) -r SearchLog
  158.     $(RM) wais-sources/wais-docs*
  159.     $(RM) config config.h
  160.     cd lib; make $@
  161.     cd ir; make $@
  162.     cd ui; make  $@
  163.     cd bin; make  $@
  164.     cd x; $(RM) *.o xwaisq xwais
  165.     cd FIELD-EXAMPLE; make  $@
  166. rlocks:
  167.     $@
  168.     cd lib; $@
  169.     cd ir; $@
  170.     cd ui;  $@
  171.     cd bin;  $@
  172.     cd doc;  $@
  173.     cd x; $@
  174.